package com.xyz.service;

import com.free.common.vo.ResultModel;
import com.xyz.utils.ThreadLocalUtils;
import org.springframework.stereotype.Service;

@Service
public class UserLoginStatusService extends BaseService {

    public ResultModel loginStatus(){
        Object obj = ThreadLocalUtils.get(ThreadLocalUtils.ACCOUNT);
        if(obj == null){
            return ResultModel.failure();
        }else{
            return ResultModel.success(obj);
        }
    }

}
